home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 3
/
Amoszine 3.adf
/
MORE_SOURCE
/
AJC-TRON-EFFECT.AMOS
/
AJC-TRON-EFFECT.amosSourceCode
Wrap
AMOS Source Code
|
1992-02-26
|
1KB
|
44 lines
'
' "TRON EFFECT" (as seen in "ILLUSIONS" Shareware art package)
' By Andrew Campbell
'
' ** Compile for super-sonic speed! **
' ** Change "Plot XP,YP" to "Circle XP,YP,2" for good effect! **
' (^ line 24)
'
Screen Open 0,320,256,32,Lowres
Curs Off : Flash Off : Curs Off : Hide On : Cls 0
Palette $0,$110,$220,$330,$440,$550,$660,$770,$880,$990,$AA0,$BB0,$CC0,$DD0,$EE0,$FF0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,0,0
C=1 : Ink C : Shift Up 1,1,31,1
_DIR=Rnd(3)+1
XP=X : YP=Y
Repeat
Inc C : Gosub CS
If _DIR=1 : Dec XP : Dec YP : End If
If _DIR=2 : Inc XP : Dec YP : End If
If _DIR=3 : Inc XP : Inc YP : End If
If _DIR=4 : Dec XP : Inc YP : End If
Plot XP,YP
If XP<1 and _DIR=1 : _DIR=2 : End If
If XP<1 and _DIR=4 : _DIR=3 : End If
If XP>318 and _DIR=2 : _DIR=1 : End If
If XP>318 and _DIR=3 : _DIR=4 : End If
If YP<1 and _DIR=1 : _DIR=4 : End If
If YP<1 and _DIR=2 : _DIR=3 : End If
If YP>255 and _DIR=4 : _DIR=1 : End If
If YP>255 and _DIR=3 : _DIR=2 : End If
Until Mouse Key
ED:
Shift Off
Fade 1 : Wait 15 : Cls 0
Edit
CS:
Inc C
If C>30 : C=1 : End If
Ink C
Return